﻿@using JobButenko.Models
@model List<EmployedJob>

@{
    ViewBag.Title = "Мои вакансии";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Мои вакансии</h2>

@foreach (var item in Model)
{
    @Html.HiddenFor(modelItem => item.VacancyId)
    <div>
        <table>
            <tr>
                <td>Вакансия: </td>
                <td>@Html.DisplayTextFor(modelItem => item.Vacancy.VacancyName)</td>
            </tr>
            <tr>
                <td>Соискатель: </td>
                <td>@Html.ActionLink(item.Candidate.Name, "ViewCandidateInfo", "Candidate", new {id = item.Vacancy.EmploedId}, null)</td>
            </tr>
        </table>
    </div>
}